#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
#include<iostream>
using namespace std;
int main()
{
	double a, b, c, disc, x1, x2, p, q;
	scanf("%lf %lf %lf", &a,&b,&c);
	//cin >> a >> b >> c;
	disc = b * b - 4 * a * c;
	p = -b / (2 * a);
	q = sqrt(disc) / (2 * a);
	x1 = q + p;
	x2 = p - q;
	printf("x1=%.2f\nx2=%.2f\n", x1, x2);
	return 0;
}